package com.oocl.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesFactory {

	private static Properties pro = null;

	public static Properties getPro(InputStream in) {
		if(null!=in){
			if (null == pro) {
				pro = new Properties();
				try {
					pro.load(in);
				} catch (FileNotFoundException e) {
					e.printStackTrace();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
		
		return pro;
	}
	
	public static Properties getPro() {
		return pro;
	}
}
